package dao;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.List;

import pojo.Book;

public interface BookDao {
	public int addBookWithDS(Book b);

	public int deleteBook(Integer id);

	public int updateBook(Book b);

	public Book loadBook(Integer id);

	public List<Book> findAll();
	
	public int addBooksFromFile(ObjectInputStream oin);
	
	public int addBooksFromFileWithDS(ObjectInputStream oin);
	
	public int addBooksFromFileWithBatch(ObjectInputStream oin);
	
	public int addBooksWithBatch(List<Book> booksList);
}
